package clue;

import clue.engine.GameEngine;
import clue.players.Player;
import clue.players.ai.AIPlayer;
import clue.players.ai.DumbAIPlayer;
import clue.players.ai.StrongAIPlayer;

/**
 *
 * @author Shawn
 */
public class Clue {

  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
	int wins1 = 0, wins2 = 0;
	double percentile = 0;
	for (int j = 0; j < 100; j++) {
		wins1 = 0;
		for (int i = 0; i < 100; i++) {
			//StrongAIPlayer sai = new StrongAIPlayer();
			AIPlayer ai = new AIPlayer();
			ai.n = j;
			Player[] players = new Player[] { ai, new DumbAIPlayer(), new DumbAIPlayer() };
			GameEngine ge = new GameEngine(players);
			ge.play();
			percentile = ai.percentile;
			if (ge.getWinnerID() == ai.getID())
				wins1++;
		}
		System.out.println(percentile + " " + ((double)wins1 ) /100);
	}
	  /*Player[] players = new Player[] { new DumbAIPlayer(), new DumbAIPlayer(), new DumbAIPlayer() };
		GameEngine ge = new GameEngine(players);
		ge.play();*/
  }
}
